package org.nf.shopping.mapper;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.nf.shopping.entity.Commodity;

import java.util.List;

/**
 * @Author czl
 * @Date 2024-12-18
 */
public interface CommodityMapper {
    List<Commodity> listCommodity(@Param("pageSize") Integer pageSize,@Param("pageNum") Integer pageNum,@Param("name") String name);

    void updateCommodity(Commodity commodity);

    void deloneCommodity(Integer id);

    void addCommodity(Commodity commodity);

    List<Commodity> getCommodityList();
}
